package com.yao.service.impl;

import com.yao.dataobject.SellerInfo;
import com.yao.repository.SellerInfoRepository;
import com.yao.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * User: 姚宏武
 * Date: 2017/11/30
 * Time: 15:48
 * Email：401369870@qq.com
 * Description: 卖家端service层实现
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return sellerInfoRepository.findByOpenid(openid);
    }
}
